Object speed weighted motion compensated interpolation

ABSTRACT

In one embodiment of the present invention, a method is provided for performing motion compensated interpolation using a previous frame and a current frame of a displayable output, the method comprising: detecting the speed of an object in the displayable output relative to the speed of a background in the displayable output; and blending results from a halo reducing interpolator and a median interpolator, wherein the results of each of the interpolators are weighted based on the speed of the object, to arrive at an interpolated frame using the previous frame and the current frame.

CROSS REFERENCE TO RELATED APPLICATIONS

This patent application is a continuation of U.S. patent applicationSer. No. 12/715,062, which is related and incorporates by reference intheir entirety the following patent applications filed concurrently withU.S. Ser. No. 12/715,062:

(i) U.S. patent application Ser. No. 12/715,233 entitled “OCCLUSIONADAPTIVE MOTION COMPENSATION INTERPOLATOR” by Petrides;(ii) U.S. patent application Ser. No. 12/715,235 entitled “MOTIONCOMPENSATED INTERPOLATION SYSTEM USING COMBINATION OF FULL ANDINTERMEDIATE FRAME OCCLUSION” by Petrides;(iii) U.S. patent application Ser. No. 12/715,014 entitled “BORDERHADLING FOR MOTION COMPENSATED TEMPORAL INTERPOLATOR USING CAMERA MODEL”by Petrides; and(iv) U.S. patent application Ser. No. 12/715,067 entitled “INTERMEDIATEFRAME OCCLUSION ESTIMATION SYSTEM USING PROJECTED VECTORS” by Petrides.

FIELD OF THE INVENTION

The invention relates to the display of images in a digital display,such as a television or monitor. More particularly, the presentinvention relates to object speed weighted motion compensatedinterpolation.

BACKGROUND OF THE INVENTION

Video compression involves the removal of information in an input videostream that is indiscernible (or nearly so) to the viewer, in order toreduce the size of the video stream. Each event, such as a change in theimage being displayed on a group of pixels, is then assigned a code.Commonly occurring events are assigned few bits and rare events willhave codes with more bits. These steps are commonly called signalanalysis, quantization and variable length encoding respectively. Thereare four methods for video compression, discrete cosine transform (DCT),vector quantization (VQ), fractal compression, and discrete wavelettransform (DWT). DCT is by far the most popular of the four.

One of the most common standards related to DCT video compression is theMoving Picture Expert Group (MPEG) standard. MPEG is actually a seriesof different standards designed with a specific application and bit ratein mind, although MPEG compression scales well with increased bit rates.

While MPEG has been used for years :in computer displays, recently suchcompression schemes have been applied to other digital displays, such ashigh definition television (HDTV) sets.

Video compression commonly involves motion compensation. Motioncompensation relies on the fact that, often, for many frames of a video,the only difference between one frame and another is the result ofeither the camera moving or an object in the frame moving. In referenceto a video file, this means much of the information that represents oneframe will be the same as the information used in the next frame, oncecorrected for the motion of the camera and/or objects.

Motion compensation takes advantage of this to provide a way to createvideo frames using a reference frame. Many of the frames in a video (theframes in between two reference frames) could be eliminated. The onlyinformation stored for the frames in between would be the informationneeded to transform the previous frame into the next frame.

Another reason to perform motion compensation in digital displays is toconvert an analog or lower frame rate video source to a high frame ratedigital signal. Most motion pictures, for example, run at a frame rateof roughly 30 frames per second. If the digital frame rate is higherthan the input source frame rate, it is necessary to performinterpolation to arrive at values for blocks of pixels for framesoccurring between actual frames of the input video source. Byinterpolating between the frames, the system is able to predict where anobject would be located in such a hypothetical frame and then cangenerate such a frame for display between two actual vide source frames.

One way to reduce errors in interpolated frames is to use a 3 tap filterto arrive at motion compensated pixel values for each block of pixels ininterpolated frames. Here, a forward motion vector is calculated for afixed block of pixels (an object) in a previous frame (PREV). This isperformed by searching for the same fixed block of pixels in a currentframe (CURR) and then arriving at a motion vector indicating the amountof movement between the two frames. A backward motion vector is thencalculated by taking a fixed block of pixels in the CURR frame andsearching the PREV frames for a match.

A first pixel value for one pixel of the object in the interpolatedframe can be derived by using the location for that pixel in the PREYframe compensated for by the forward motion vector. This is performed byfirst determining the amount of weighting that needs to be applied tothe forward motion vector based on the timing of the interpolation. Forexample, if the interpolated frame is exactly midway between the PREVand CURR frames, then the forward motion vector can be weighted by ½,meaning that the object is assumed to have moved half the distance fromthe PREV frame to the interpolated frame as it appears to have movedfrom the PREV frame to the CURR frame. If, on the other hand, theinterpolated frame is ⅓ of the way between the PREV and CURR frame, theforward motion vector may be weighted by ⅓. This weighted forward motionvector can then be applied to the pixel location in the PREY frame toobtain a location of that pixel in the interpolated frame.

A second pixel value for that pixel of the object in the interpolatedframe can be derived by using the location for that pixel in the CURRframe compensated for by the backward motion vector. Again, a weightingis applied based on the temporal location of the interpolated framebetween the CURR and PREV frames. For example, if the interpolated frameis ⅓ of the way between the PREV and CURR frame, the backward motionvector may be weighted by ⅔. This weighted backward motion vector canthen be applied to the pixel location in the CURR frame to obtain alocation of that pixel in the interpolated frame.

A third pixel value for that pixel of the object may be derived bysimply performing temporal interpolation for the exact pixel involved(regardless of movement of objects). If, for example, the pixel changesfrom an orangish color to a purplish color from the PREY frame to theCURR frame, and the interpolated frame is exactly midway between thePREY frame and the CURR frame, the pixel value for the interpolatedframe may be the color that is exactly mid way between the orangishcolor and the purplish color.

Absent a scene change, as described earlier, generally the only movementinvolved in a video involves either camera movement (e.g., pans orzooms) or object movement. Occlusion refers to the moving on an objectwith relation to a background. The object moves in front of thebackground, blocking certain portions of the background, hence the term“occlusion.”

FIG. 1 is a diagram illustrating an example of occlusion. Here, anobject 100 is moving in one direction, while a background 102 is movingin another. The occluded regions are dependent on the speed of themovements of the object and background with relation to each other, andrepresent the areas where the movement either unveils or conceals anarea of the background from the previous frame. An area where the object100 is present in both the previous frame and the current frame isgenerally not called an occluded area, even though technically thebackground is covered by the object in this area as well.

Traditionally, motion compensation algorithms such as the one describedabove suffer from problems with respect to occlusions. Depending uponthe speed of the object with respect to the speed of the background,various visual artifacts can be seen when occlusions occur. Generallyspeaking, the faster the object moves with respect to the speed of thebackground, the more visual artifacts there are.

Judder is one commonly known artifact relating to fast motion. Judder isa subtle stuttering effect similar to blurring. Judder problems withmodern displays, however, have been becoming less and less prevalent asmanufacturers move to screens with higher refresh rates. For example,judder may occur on an older display having a 60 Mhz refresh rates, butmore recent displays utilize 120 Mhz or even 240 Mhz refresh rates,which dramatically reduce such judder.

Another less well known visual artifact, however, is known as the haloartifact. These artifacts are characterized by pixel errors in theocclusions (reveal and conceal) areas of the picture. The errors appearas a type of visible “mushiness” in the occlusion region.

SUMMARY OF THE INVENTION

In one embodiment of the present invention, a method is provided forperforming motion compensated interpolation using a previous frame and acurrent frame of a displayable output, the method comprising: detectingthe speed of an object in the displayable output relative to the speedof a background in the displayable output; and blending results from ahalo reducing interpolator and a median interpolator, wherein theresults of each of the interpolators are weighted based on the speed ofthe object, to arrive at an interpolated frame using the previous frameand the current frame.

In another embodiment of the present invention, a method is provided forperforming motion compensated interpolation using a previous frame and acurrent frame of a displayable output, the method comprising: detectingthe speed of an object in the displayable output relative to the speedof a background in the displayable output; and performing pre-emphasisfiltering on the displayable output, wherein the pre-emphasis filteringboosts higher frequencies within the displayable output, wherein thedegree of pre-emphasis filtering is weighted based on the speed of theobject.

In another embodiment of the present invention, a method is provided forperforming motion compensated interpolation using a previous frame and acurrent frame of a displayable output, the method comprising: detectingthe speed of an object in the displayable output relative to the speedof a background in the displayable output; performing pre-emphasisfiltering on the displayable output, wherein the pre-emphasis filteringboosts higher frequencies within the displayable output, wherein thedegree of pre-emphasis filtering is weighted based on the speed of theobject; and blending results from a halo reducing interpolator and amedian interpolator, wherein the results of each of the interpolator areweighted based on the speed of the object, to arrive at an interpolatedframe using the previous frame and the current frame.

In another embodiment of the present invention, an interpolation systemis provided comprising: an object speed detection unit configured todetect the speed of an object in displayable output relative to thespeed of a background in the displayable output; a halo reducinginterpolator; a median interpolator; and a blending module coupled tothe object speed detection unit, halo reducing interpolator, and medianinterpolator and configured to blend results of the halo reducinginterpolator and the median interpolator based upon the speed of theobject as detected by the object speed detection unit.

In another embodiment of the present invention, a display device isprovided comprising: a digital display; and a display controllercomprising: an object speed detection unit configured to detect thespeed of an object in displayable output relative to the speed of abackground in the displayable output; a halo reducing interpolator; amedian interpolator; and a blending module coupled to the object speeddetection unit, halo reducing interpolator, and median interpolator andconfigured to blend results of the halo reducing interpolator and themedian interpolator based upon the speed of the object as detected bythe object speed detection unit.

In another embodiment of the present invention, a computer chip isprovided configured to: detect the speed of an object in the displayableoutput relative to the speed of a background in the displayable output;and blend results from a halo reducing interpolator, and a medianinterpolator, wherein the results of each of the interpolator areweighted based on the speed of the object, to arrive at an interpolatedframe using the previous frame and the current frame.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a diagram illustrating an example of occlusion.

FIG. 2 is a diagram illustrating an example of conceal and reveal areas.

FIG. 3 is a block diagram illustrating a system for performing occlusionadaptive motion compensated temporal interpolation in accordance with anembodiment of the present invention.

FIG. 4 is a diagram illustrating the results of interpolation using thefirst embodiment of the present invention.

FIG. 5 is another diagram illustrating results of interpolation usingthe first embodiment of the present invention.

FIG. 6 is another diagram illustrating results of interpolation usingthe first embodiment of the present invention.

FIG. 7 is another diagram illustrating results of interpolation usingthe first embodiment of the present invention.

FIG. 8 is a flow diagram illustrating a method for performing motioncompensated interpolation in accordance with the present invention.

FIG. 9 is a block diagram illustrating an interpolation system inaccordance with the second embodiment of the present invention.

FIG. 10 is a flow diagram illustrating a method for performing motioncompensated interpolation using a previous frame and current frame ofthe displayable output in accordance with the second embodiment of thepresent invention.

FIG. 11 is a flow diagram illustrating a method for detecting the speedof an object in the displayable output relative to the speed of abackground in the displayable output in accordance with the secondembodiment of the present invention.

FIG. 12 is a block diagram illustrating another interpolation system inaccordance with the second embodiment of the present invention.

FIG. 13 is a flow diagram illustrating another method for performingmotion compensated interpolation using a previous frame and currentframe of the displayable output in accordance with the second embodimentof the present invention.

FIG. 14 is a block diagram illustrating a combined interpolation systemin accordance with the second embodiment of the present invention.

FIG. 15 is a flow diagram illustrating a combined method for performingmotion compensated interpolation using a previous frame and currentframe of the displayable output in accordance with the second embodimentof the present invention.

FIG. 16 is an example of video content in a letterbox region

FIG. 17 is an example of video content in a pillarbox region.

FIG. 18 is a flow diagram illustrating a method for providing borderhandling in motion compensated interpolation in accordance with thethird embodiment of the present invention.

FIG. 19 is a block diagram illustrating a border handling motioncompensation interpolator in accordance with the third embodiment of thepresent invention.

FIG. 20 illustrates an example where a background is moving down and anobject moving up, while there are two frames to be interpolated betweenthe PREV frame and the CURR frame.

FIG. 21 is an example of suspect reveal and conceal areas.

FIG. 22 is a flow diagram illustrating a method for performing motioncompensated interpolation using a previous frame and a current frame ofa displayable output in accordance with the fourth embodiment of thepresent invention.

FIG. 23 is a block diagram of an intermediate frame occlusion estimationsystem in accordance with the fourth embodiment of the presentinvention.

FIG. 24 is a diagram illustrating the generation of backwardinterpolated (BD and forward interpolated (FD vector fields inaccordance with the fifth embodiment of the present invention.

FIG. 25 is a diagram illustrating how the pixels are brought in to theinterpolated field using the BI and FI vector fields.

FIG. 26 is a flow diagram illustrating a method for performing motioncompensated interpolation using a previous frame and a current frame ofa displayable output in accordance with the fifth embodiment of thepresent invention.

FIG. 27 is block diagram illustrating an interpolator in accordance withthe fifth embodiment of the present invention.

DETAILED DESCRIPTION OF SELECTED EMBODIMENTS

Reference will now be made in detail to a particular embodiment of theinvention an example of which is illustrated in the accompanyingdrawings. While the invention will be described in conjunction with theparticular embodiment, it will be understood that it is not intended tolimit the invention to the described embodiment. To the contrary, it isintended to cover alternatives, modifications, and equivalents as may beincluded within the spirit and scope of the invention as defined by theappended claims.

In a first embodiment of the present invention, special care is taken todetect occlusion areas of a display as they are occurring. Specifically,the system looks for conceal areas and reveal areas. A conceal area isone where a motion compensated pixel in the previous frame does not havea corresponding match in the current frame, meaning that a moving objecthas covered up the pixel in the most recent frame. A reveal area is onewhere a motion compensated pixel in the current frame does not have acorresponding match in the previous frame, meaning that a moving objecthas moved away from an area of the background, revealing the backgroundunderneath. Both conceal and reveal areas are occlusion areas.

FIG. 2 is a diagram illustrating an example of conceal and reveal areas.In PREV frame 200, object 202 is in a certain location with respect tobackground 204. In CURR frame 206, the object 202 has moved to adifferent location with respect to background 204. The area 208 that theobject has just recently covered up is a conceal area, while the area210 that the object has just recently uncovered is a reveal area.

In the case where a conceal region is detected, an interpolator inaccordance with the first embodiment of the present invention isdesigned to discard the motion compensated pixel in the current frameand any temporal average pixel that was computed. The interpolator thenuses the motion compensated pixel in the previous frame alone as thevalue of the pixel in the interpolated frame.

In the case where a reveal region is detected, the interpolator inaccordance with the first embodiment of the present invention isdesigned to discard the motion compensated pixel in the previous frameand any temporal average pixel that was computed. The interpolator thenuses the motion compensated pixel in the current frame alone as thevalue of the pixel in the interpolated frame.

For all non-occlusion regions, a three-tap filter interpolation processmay be utilized to compute the value for the interpolated frame.

The first embodiment of the present invention has the advantage of, inmany cases, being just as effective in reducing the halo effect as verysophisticated interpolators, yet using a much simpler design that vastlyimproves efficiency. In the case of computer chips, especially thoseused to control display devices, this improved efficiency translatesdirectly into a lower cost.

YUV, also known as Y′CbCr and YPbPr, is a color space in which the Ystands for the luminance component (the brightness) and U and V arechrominance (color) components. It is commonly used in videoapplications, where it is also referred to as component video.

YUV signals are created from an original RGB (red, green and blue)source. The weighted values of R, G and B are added together to producea single Y signal, representing the overall brightness, or luminance, ofthat spot. The U signal is then created by subtracting the Y from theblue signal of the original RGB, and V by subtracting the Y from thered. This can be accomplished easily with analog circuitry.

YUV 4:2:2 (also known as YUV 422) is a specific encoding for digitalrepresentation of the YUV color space. In YUV 4:2:2, the basic unit iscomposed of two pixels, and occupies four bytes of space. Each pixel hasan individual 8 bit Y channel. Then, the first pixel specify an 8 bit Uchannel, and the second pixel an 8 bit V channel. Both pixels use thesame U and V channels.

While an embodiment of the present invention is described using YUV 422,one of ordinary skill in the art will recognize that many differentencoding schemes can be used for the pixel data, and thus the inventionshould not be limited to this one particular encoding scheme unlessexpressly claimed.

FIG. 3 is a block diagram illustrating a system for performing occlusionadaptive motion compensated temporal interpolation in accordance with anembodiment of the present invention. A picture correlation vectorconfidence block 300 is used to detect reveal and conceal areas. Thepixel correlation vector confidence block 300 checks for forward andbackward vector accuracy on a pixel by pixel basis. It takes as inputthe forward and backward primary vectors 302, 304 and the YUV 422 pixeldata from the CURR 306 and PREV 308 frames. It then outputs an“assignment_status” assigning four possible conditions to each pixel(non_converge, conceal, reveal, and normal).

For forward correlation, the reference pixel is taken from the PREVframe at the current xy coordinate and the motion compensated pixels istaken from the CURR frame by adding the forward vector x and ycomponents to the current xy coordinate. In areas where the vectors arecorrect, the sum of the absolute differences of the Y, U, and Vcomponents of the two pixels (the forward frame difference) should besmall. In conceal areas, the corresponding pixel in the CURR frame doesnot exist and the forward frame difference will probably be high.

For backward correlation, the reference pixel is taken from the CURRframe at the current xy coordinate and the motion compensated pixel istaken from the PREV frame by adding the backward vector x and ycomponents to the current xy coordinate. In areas where the vectors arecorrect, the sum of absolute differences of the Y, U, and V componentsof the two pixels (the backward frame difference) should be small. Inreveal areas, the corresponding pixel in the PREV frame does not existsand the backward frame difference will probably be high.

The “assignment_status” is derived from the forward and backward framedifferences. Where both are above the high threshold, the status is“non_converge”. Where the forward is above the high threshold and thebackward is below the low threshold, the status is “conceal”. Where thebackward is above the high threshold and the forward is below the lowthreshold, the status is “reveal”. Otherwise, the status is “normal.”

This type of occlusion detection can be termed “full frame” (FF)occlusion detection. This will be contrasted later with an alternativetype of occlusion detection that can be termed “interpolated frame” (IF)occlusion detection.

The assignment_status may have some degree of speckle noise, andtherefore may need to be filtered. Speckle noise is characterized byerroneous values for essentially randomly placed pixels due toestimation error. The assignment_status is therefore input to anassignment status histogram filter 310, where it is so filtered. Sincethis embodiment is only concerned with whether the areas is reveal,conceal, or neither, the filtered_assignment_status 312 has threepossible conditions for each pixel (conceal, reveal, and normal).

It should be noted that it is not necessary for the number of differentlevels of the conceal/reveal signal to be merely 3. As the filter islooking at the input results in a localized region, it can produce agraded signal indicating strong conceal, weak conceal, normal, weakreveal, or strong reveal. Indeed, this signal can actually be at anyresolution, for example 33 different levels, from strong conceal tostrong reveal. This is not depicted in the figure but it is anembodiment contemplated by this document.

A first motion compensated pixel interpolator 314 takes as input aforward vector 316 and the YUV 422 pixel data from the CURR frame 318.The vector is scaled to correspond to the fractional position of theinterpolated frame (e.g., ⅓, ⅔). In one embodiment, the scaled vectorsare a fixed point with a 5 bit fractional part. However, one of ordinaryskill in the art will recognize that the vectors may be in any formatand the invention should not be limited to this particular embodimentunless expressly claimed. Following the vector scaling, a 32 phasebilinear filter can be used to allow motion compensation to an accuracyof 1/32nd of a pixel. Again, one of ordinary skill in the art willrecognize that this is just one example of a filter that can be utilizedfor motion compensation, and that the invention should not be limited tothis particular example unless expressly claimed.

A second motion compensated pixel interpolator 320 takes as input abackward vector 322 and the YUV 4:2:2 pixel data from the PREV frame324. As with above, the vector is scaled to correspond to the fractionalposition of the interpolated frame (e.g., ⅓, ⅔), and the scaled vectorsmay be fixed point with a 5 bit fractional part. Then a 32 phasebilinear filter may be used to allow motion compensation to an accuracyof 1/32nd of a pixel.

A temporal average pixel interpolator 326 takes an average of the YCC422 information from the PREY 328 and CURR 330 frame pixels, weightedaccording to the temporal position of the interpolated frame. Forexample, for the ⅓ interpolated frame, the PREV frame makes a ⅔contribution and the CURR frame makes a ⅓ contribution. The output isthe temporal average pixel 332.

A median filter 334 finds the median of the motion compensation CURRpixel 336, the motion compensated PREV pixel 338, and the temporalaverage pixel 332.

A selector 340 then takes as input the motion compensated CURR pixel336, the motion compensated PREY pixel 338, and the median 342 from themedian filter 334 and selects between them based upon whether the output312 from the assignment status histogram filter 310 is a reveal, aconceal, or neither. Thus, in reveal areas, the Motion CompensatedCurrent (MCCURR) pixel is selected, in conceal areas, the MotionCompensated Previous (MCPREV) pixel is selected, and everywhere else,the MEDIAN pixel is selected. In the case where a 33 level filteredassignment status is utilized, blending may occur between the MCCURR,MCPREV, and MEDIAN pixels.

FIG. 4 is a diagram illustrating the results of interpolation using thefirst embodiment of the present invention. Specifically, FIG. 4 shows acase where the background is moving downwards significantly but theforeground is near stationary. In this case, the output picture is nearideal, with the correct background information being inserted in theocclusion areas. Indeed, if the background was completely stationary,the output picture would be ideal.

It should be noted that this figure represents a simplification ofactual movement on a computer display, in order to better illustrate howthe first embodiment of the present invention operates. Specifically,only one interpolated frame 400 is depicted (exactly midway between thePREY 402 and CURR frame 404). Additionally, movement is only beingdepicted in one direction (along a single access). An actual computerdisplay, however, has two dimensions and thus movement is more commonlyseen across multiple axis simultaneously.

Nevertheless, as can be seen, object 406 moves upwards between PREVframe 402 and CURR frame 404. Thus, a conceal region 408 is createdwhere pixels in the background on the PREV frame 402 have nocorresponding match in the CURR frame 404 (because object 406 has movedupwards to block this portion of the background). Note that the concealregion 408 is actually larger than the absolute difference in locationof the object from the PREV frame 402 to the CURR frame 404 because thebackground is also moving downwards. Since the background is movingquite significantly, the conceal region is actually significantly largerthan it would have been if the background was stationary.

Likewise, a reveal region 410 is created where pixels in the backgroundon the CURR frame 404 have no corresponding match in the PREV frame 402(because object 406 has moved upwards to reveal this potion of thebackground).

The interpolated frame is then calculated based upon the firstembodiment of the present invention. For each pixel in a non-occludedarea 412, a backward vector 414 applied to a pixel in the PREY frame 402is used to calculate a pixel value for the interpolated frame. Likewise,a forward vector 416 applied to a pixel in the CURR frame 404 is used tocalculate a pixel value for the interpolated frame. A temporal averagepixel (not pictured) is then also calculated, and the median of thesethree calculations is used as the value for the interpolated frame.

For each pixel of the conceal region 408, a backward vector 418 appliedto a pixel :in the PREV frame 402 is used to calculate a pixel value andthat is the value that is used for the interpolated frame (no motioncompensated current pixel needs to be calculated nor does a temporalaverage pixel need to be calculated, although embodiments are possiblewhere these values are computed and simply discarded).

For each pixel of the reveal region 410, a forward vector 420 applied toa pixel in the CURR frame 404 is used to calculate a pixel value andthat is the value that is used for the interpolated frame (no motioncompensated previous pixel needs to be calculated nor does a temporalaverage pixel need to be calculated, although embodiments are possiblewhere these values are computed and simply discarded). Of course, asdescribed above, blending may also occur at this point.

FIG. 5 is another diagram illustrating results of interpolation usingthe first embodiment of the present invention. Specifically, FIG. 5shows a case where the background is moving significantly and theforeground is also moving significantly, but in a different direction.In this case the output picture is good, but not great. Specifically,background information inserted in the occlusion areas improves thepicture, however, there is discontinuity in the background picture. Thisdiscontinuity can be seen at areas 500 and 502. At area 500, thediscontinuity occurs because the system is unable to determine whetherto use a backward vector 504 computed based on the background movementor a backward vector 506 computed based on the object movement.Likewise, at area 502, the discontinuity occurs because the system isunable to determine whether to use a forward vector 508 computed basedon the background movement or a forward vector 510 computed based on theobject movement. In this case, however, because the object is movingsignificantly, the position of the occlusion area is also moving on aframe by frame basis so the discontinuity will not be very noticeable.

FIG. 6 is another diagram illustrating results of interpolation usingthe first embodiment of the present invention. Specifically, FIG. 6shows a case where the background is stationary and the foreground ismoving significantly. In this case, the output picture is similar toFIG. 5, where the background information is inserted in the occlusionareas but there is discontinuity in the background at the edge of theocclusion areas. As the object is moving significantly, the position ofthe occlusion area is also moving on a frame by frame basis so thediscontinuity will not be very noticeable.

FIG. 7 is another diagram illustrating results of interpolation usingthe first embodiment of the present invention. Specifically, FIG. 7shows a case where the object is moving in the same direction as thebackground but not as fast. This shows that errors will occur on boththe background and the object near the object/background boundary. Asthis is not an occlusion area, the median filter output will beselected. The errors introduced in this type of situation can be handledby another embodiment of the present invention described later in thisdocument.

Thus, the first embodiment of the present :invention provides a cheapand effective solution to halo reduction in cases of a slow movingforeground.

FIG. 8 is a flow diagram illustrating a method for performing motioncompensated interpolation in accordance with the present invention. Thismethod may be performed by, for example, a computer chip in a displaycontroller. The display controller may be located in, for example, aLiquid Crystal Display (LCD) television or other display device. Thismethod may use a previous frame and a current frame of a displayableoutput to arrive at an interpolated frame.

At 800, it is determined if motion of an object within the displayableoutput with respect to motion of a background within the displayableoutput is such that a particular area of an interpolated frame is areveal region, a conceal region, or neither. A reveal region may be anarea where the pixels in the current frame do not have matches in theprevious frame. A conceal region may be an area where the pixels in theprevious frame do not have matches in the current frame.

If the area is neither a reveal region nor a conceal region, then at 802both forward vectors applied to the current frame and backward vectorsapplied to the previous frame are used to calculate values for pixelswithin the area. In one embodiment this may be accomplished by using athree tap median filter to find the median of a motion compensated pixelfrom the previous frame, a motion compensated pixel from the currentframe, and a temporal average pixel.

If the area is a reveal region, then at 804, forward vectors applied tothe current frame are used to calculate values for pixels within thearea, without using backward vectors. In situations where the temporalaverage pixel has also been generated, this also may not be used tocalculate values for pixels within the reveal region.

If the area is a conceal region, then at 806, backward vectors appliedto the previous frame are used to calculate values for pixels within thearea, without using forward vectors. In situations where the temporalaverage pixel has also been generated, this also may not be used tocalculate values for pixels within the conceal region.

As described above, blending may occur at this point as well. Thisblending is not depicted in the flow diagram but is an embodiment thatis contemplated by this document.

It should be noted that the forward and backward vectors, when used, maybe weighted based on their respective temporal distances from theinterpolated frame. For example, if the interpolated frame is at ⅓ ofthe period from the previous frame and ⅔ of the period from the currentframe, then the forward vector may be weighted by ⅔ and the backwardvector by ⅓.

Due to the first embodiment of the present invention's ability to reducehalo artifacts, this embodiment may also be called a halo reducinginterpolator and its processes halo reducing interpolation.

in a second embodiment of the present invention, the limitations of thefirst embodiment of the present invention with respect to fast movingforeground objects are dealt with. Specifically, the relative speed atwhich the object is moving is measured. Based on the relative speed ofthe object, the halo reducing interpolator according to the firstembodiment of the present invention is blended with a medianinterpolator. The faster the object is moving, the less the haloreducing interpolator is used and the more the median interpolator isused. The slower the object is moving, the more the halo reducinginterpolator is used and the less the median interpolator is used.

It should be noted that the halo reducing interpolator according to thefirst embodiment of the present invention need not be the exactinterpolator used as part of this blending. Any interpolator thatperforms halo reducing interpolation yet suffers from limitations athigh object speeds may be utilized. As such, one of ordinary skill inthe art will recognize that the invention should not be limited to oneparticular type of halo reducing interpolator unless expressly claimed.

In the second embodiment of the present invention, an object speedweighted interpolation mode may utilize a fade control signal indicatingthe level of halo reduced interpolation that should be performed. In oneembodiment of the present invention, this control signal is a 4-bitsignal with values from 0 (full median interpolation) to 8 (full haloreduction interpolation). This may be generated in firmware and updatedat the start of each frame. It should be noted that this scale is merelyone example of a blending scale that can be utilized with the secondembodiment of the present invention, and that one of ordinary skill inthe art will recognize that other scales and data structures may beutilized for this signal.

The system can detect when there is a fast moving object or no object atall. This may be performed by, for example, firmware stored on a storagedevice within the system. In these cases, the interpolator is set tomedian mode. When the fastest object detected is slow moving, a blenderfades back to the adaptive halo reduction interpolation mode. The fadevalue depends on the object speed.

In an embodiment of the present invention, detection of the speed ofobjects is accomplished by creating a two dimensional histogram of themotion vector field with the dimensions corresponding to the verticaland horizontal components of background and object motion vectors. Onlyvectors with a higher confidence of being correct are accumulated in thehistogram, with the others being ignored or given a lower weighting by afiltering process.

The two dimensional histogram field is analyzed for dominant vectors.The bin with the highest count is taken first. The neighboring bins areassumed to be associated with this bin, which is assumed to relate tothe background.

Bins near the bins corresponding to the background are then ignored andthe remaining bins are analyzed to detect objects. If an object isdetected (by having a count above a threshold) then the closestneighbors are assumed to also correspond to that object.

Essentially, the system looks for a large number of vectors in aparticular direction. The largest grouping of such vectors is classifiedas the background. In this manner, an estimation is made of thebackground motion and the motion of any objects. If there are no objectsdetected, as in the case where there is a panning movement through animage, then median interpolation may be used.

By blending median interpolation and halo reduction interpolation, thedrawbacks of using either method alone in certain situations is greatlyreduced.

FIG. 9 is a block diagram illustrating an interpolation system inaccordance with the second embodiment of the present invention. Afiltering and weighting unit 900 performs filtering and weighting on afield of input vectors. Those filtered and weighted vectors are then fedto a two dimensional histogram generator 902 that generates a twodimensional histogram of the vectors. An analysis unit 904 then analyzesthe histogram for dominant vectors and estimates the background motionand the motion of any objects. Through this, a fade control signal canbe generated based on the relative speed of an object. This fade controlsignal is fed to a blender 906, which blends output from a halo reducinginterpolator 908 and a median interpolator 910 based upon the relativespeed of an object.

FIG. 10 is a flow diagram illustrating a method for performing motioncompensated interpolation using a previous frame and current frame ofthe displayable output in accordance with the second embodiment of thepresent invention. At 1000, the speed of an object in the displayableoutput relative to the speed of a background in the displayable outputis detected. This detection may be performed by using a method inaccordance with the flow diagram illustrated in FIG. 11. Here, at 1100,a two-dimensional histogram of the motion vector field is created withdimensions corresponding to the vertical and horizontal components ofbackground and object motion vectors is created based on the displayableoutput. At 1102, greater weight is given to vectors with a higherconfidence of being correct in the histogram. At 1104, the twodimensional histogram field is analyzed for dominant vectors. At 1106,the dominant vectors are grouped into categories, wherein one categoryis background and one or more categories are objects.

Referring back to FIG. 10, at 1002, a fade control signal is generatedbased on the object speed. At 1004, results from a halo reducinginterpolator and a median interpolated are blended, wherein the resultsof each of the interpolators are weighted based upon the speed of theobject, to arrive at an interpolated frame using the previous frame andthe current frame. The higher the object speed, the higher the resultsof the median interpolator are weighted, and the lower the results ofthe halo reducing interpolator are weighted.

The artifacts caused by discontinuity, which were described earlier withrespect to the first embodiment of the present invention, can be furtherreduced by using a pre-emphasis filter to boost the higher frequenciesby a large amount. A de-emphasis filter then restores a flat frequencyresponse after interpolation is performed. The advantage is that sharpdiscontinuity interpolation artifacts typically produced in occlusionareas are very effectively smoothed by the de-emphasis filter.

In certain types of scenes, the pre-emphasis itself can add aliasingartifacts to high-frequency areas. Therefore, it is desirable that thepre-emphasis only be turned on when needed. As such, the pre-emphasismay be weighted by object speed in much the same way that halo reducinginterpolation can be weighted by object speed. The strength of thepre-emphasis can be reduced as the relative speed of the object withrespect to the background is reduced.

FIG. 12 is a block diagram illustrating another interpolation system inaccordance with the second embodiment of the present invention. Here, afiltering and weighting unit 1200 performs filtering and weighting on afield of input vectors. Those filtered and weighted vectors are then fedto a two dimensional histogram generator 1202 that generates a twodimensional histogram of the vectors. An analysis unit 1204 thenanalyzes the histogram for dominant vectors and estimates the backgroundmotion and the motion of any objects. Through this, a fade controlsignal can be generated based on the relative speed of an object. Thisfade control signal is fed to both a pre-emphasis unit 1206 and ade-emphasis unit 1210, which adjusts the amount of pre-emphasisperformed prior to an interpolator 1208, as well as the amount ofde-emphasis performed after the interpolator 1208, based on the fadecontrol signal. The faster the object, the stronger the pre-emphasis(and thus the stronger the amount of de-emphasis needed in order torestore a flat frequency response).

FIG. 13 is a flow diagram illustrating another method for performingmotion compensated interpolation using a previous frame and currentframe of the displayable output in accordance with the second embodimentof the present invention. At 1300, the speed of an object in thedisplayable output relative to the speed of a background in thedisplayable output is detected. This detection may be performed by usinga method in accordance with the flow diagram illustrated in FIG. 11.

At 1302, pre-emphasis filtering is performed on the displayable output,wherein the pre-emphasis filtering boosts higher frequencies within thedisplayable output, wherein the degree of pre-emphasis filtering isweighted based on the speed of the object. The higher the speed of theobject, the higher the degree of pre-emphasis filtering. FIG. 14 is ablock diagram illustrating a combined interpolation system in accordancewith the second embodiment of the present invention. FIG. 14 essentiallyrepresents a combination of FIGS. 9 and 12.

A filtering and weighting unit 1400 performs filtering and weighting ona field of input vectors. Those filtered and weighted vectors are thenfed to a two dimensional histogram generator 1402 that generates a twodimensional histogram of the vectors. An analysis unit 1404 thenanalyzes the histogram for dominant vectors and estimates the backgroundmotion and the motion of any objects. Through this, a fade controlsignal can be generated based on the speed of an object. This fadecontrol signal is fed to a blender 1406, which blends output from a haloreducing interpolator 1408 and a median interpolator 1410 based upon thespeed of an object. A separate fade control signal is also fed to both apre-emphasis unit 1412 and a de-emphasis unit 1414, which adjusts theamount of pre-emphasis performed prior to an interpolator 1416, as wellas the amount of de-emphasis performed after the interpolator 1416,based on the fade control signal. The faster the object relative to thebackground, the stronger the pre-emphasis (and thus the stronger theamount of de-emphasis needed in order to restore a flat frequencyresponse).

FIG. 15 is a flow diagram illustrating a combined method for performingmotion compensated interpolation using a previous frame and currentframe of the displayable output in accordance with the second embodimentof the present invention. FIG. 15 essentially represents a combinationof FIGS. 10 and 13.

At 1500, the speed of an object in the displayable output relative tothe speed of a background in the displayable output is detected. Thisdetection may be performed by using a method in accordance with the flowdiagram illustrated in FIG. 11. At 1502, a fade control signal isgenerated based on the object speed. At 1504, results from a haloreducing interpolator and a median interpolated are blended, wherein theresults of each of the interpolators are weighted based upon the speedof the object, to arrive at an interpolated frame using the previousframe and the current frame. The higher the relative speed, the higherthe results of the median interpolator are weighted, and the lower theresults of the halo reducing interpolator are weighted.

At 1506, pre-emphasis filtering is performed on the displayable output,wherein the pre-emphasis filtering boosts higher frequencies within thedisplayable output, wherein the degree of pre-emphasis filtering isweighted based on the speed of the object. The higher the speed of theobject, the higher the degree of pre-emphasis filtering.

The halo occlusion artifacts described earlier also tend to clusteraround the borders of a picture when there are fast pans. FIGS. 16 and17 depict an example of this. In FIG. 16, the actual video content isdisplayed in a letterbox region 1600 on the screen. Regions 1602 and1604 remain black throughout the video. Such letterbox presentations arecommon, for example, when displaying a movie in its original theatricalformat on a 4:3 display, such as an older television set. Such letterboxpresentations are also common even on the more recent 16:9 displays whenthe original theatrical format of the movie has a higher aspect ratio,such as 2.35:1. The letterboxing creates a visible border 1606, 1608above and below the video content.

In FIG. 17, the actual video content is displayed in a pillarbox region1700 on the screen. Regions 1702 and 1704 remain black throughout thevideo. Such pillarbox presentations are common, for example, whendisplaying 4:3 content on a 16:9 television. The pillarboxing creates avisible border 1706, 1708 on either side of the video content.

The problem is that if there are quick pans, haloing artifacts appearalong the visible borders. The problem is more prevalent for verticalpans of a letterbox image and horizontal pans of a pillarbox image. Theproblem is caused by motion compensation algorithms making errors aroundthese edges.

In a third embodiment of the present invention, a camera model detectsthe predominant pan, rotation, and zoom parameters in a moving sequence.This information is then used to calculate a field of vectors thatapproximates the average motion over the whole frame. The approximatereveal or conceal areas on each edge of the frame to be interpolated arethen calculated. The interpolator can use this to pull a pixel from theappropriate input frame when assembling this region. This camera modelmay be used in portions of the displayable area near the bordersdescribed above (the areas determined to be reveal or conceal areas),and aid in reducing or even eliminating the haloing issues caused byerrors in other motion compensation algorithms.

The camera model may not, however, work very well if the movement is notcaused by a pan, rotation, or zoom in a moving sequence (i.e., whatappears to be a camera movement across a scene), but rather is caused byan object moving near one of the borders (e.g., a foreground objectpassing into or out of the frame). As such, in one embodiment of thepresent invention, this type of object movement is detected and if thereveal or conceal area is caused by object motion rather than cameramotion, the camera model is not used for interpolation in thecorresponding region.

This is performed by checking the area near each edge to ensure thereare not many reliable vectors in the actual vector field that aredifferent from the calculated vector field using the camera model. Inthis case, there is a foreground object near the edge, and the cameramodel border handling will be disabled on that edge.

It should be noted that the detection of a reveal region or a concealregion is different than that as described above with respect to thefirst embodiment of the present invention. There, the reveal or concealareas was caused by movement of an object with respect to the backgroundof an image. Here, a reveal area has to do with an area that was notdisplayed at all in the previous frame, and a conceal area has to dowith an area that is no longer displayed in the current frame eventhough it was in a previous frame. It should be noted that where theremight be confusion with respect to which type of reveal or conceal areais being referred to, the terms “camera conceal” and “camera reveal” canbe used to indicate conceals and reveals based on camera movement, and“object conceal” and “object reveal” can be used to indicate concealsand reveals based on object movement.

In cases where the camera model's reconstructed vectors generallycorrelate closely to the actual vectors near the border, the cameramodel border handling works well. Where there is non-camera pan motionnear the border (for example, a foreground object near the border)erroneously defining that area as a reveal or conceal area would causeerrors on the interpolator output.

It should be noted that the camera model border handling can be turnedoff individually on each of the four picture edges if the number ofvectors with bad vector/camera vector correlation is above a thresholdin the region corresponding to that edge. The occlusion handling thenreverts to some other occlusion handling used in non-border areas.

It should also be noted that it is possible to use the halo recuinginterpolator according to the first embodiment of the invention as theinterpolator on these reveal/conceal areas detected by the thirdembodiment of the present invention when it is determined that the areais not caused by a camera movement but rather by an object movement. Inother words, the first and third embodiments of the present inventioncan be combined so that reveal and conceal areas due to object movementare handled by the first embodiment of the present invention, whilereveal and conceal areas due to camera movement are handled by the thirdembodiment of the present invention.

FIG. 18 is a flow diagram illustrating a method for providing borderhandling in motion compensated interpolation in accordance with thethird embodiment of the present invention. At 1800, a camera model isused to detect areas of predominant movement in a displayable output,wherein the camera model identifies probable values for pixels in borderareas of the displayable output based on common camera movements. Thesecommon camera movements may include, for example, pans, rotations, andzooms. At 1802, reveal and conceal areas near the borders of thedisplayable output are located, wherein a reveal area is an area visiblein the current frame that was not visible in a previous frame and aconceal area is an area visible in a previous frame that is not visiblein a current frame. Then 1804-1808 are performed for each reveal orconceal area. At 1804, it is determined whether the reveal or concealarea is due to a camera movement or an object movement. If it is due toa camera movement, then at 1806 the camera model is used to arrive atinterpolated pixel values for pixels within the corresponding area. Ifthe reveal or conceal area is not due to a camera movement, then at 1808the system arrives at interpolated pixel values for pixels within thecorresponding area without using the camera model. This may involve, forexample, using a halo reducing interpolation process. The bordersdescribed above are the top and bottom edges of the displayable outputfor letterbox output, and the left and right edges of the displayableoutput for pillarbox output.

FIG. 19 is a block diagram illustrating a border handling motioncompensation interpolator in accordance with the third embodiment of thepresent invention. A camera modeler 1900 may be configured to modelmovements in a displayable output and identify probable reveal andconceal areas for the displayable output. Camera parameters may then beoutput to a vector field generator 1902, which regenerates a vectorfield associated with the interpolated frame based upon the cameramodel. A vector field is a construct of the projections of forwardand/or backward motion vectors. This regenerated vector field is passedto a border occlusion generator 1904, and also to an edge regionvector/camera vector correlation accumulator 1906, which attempts tocalculate camera correlation heuristics based on the edges of thedisplayable output.

A letterbox detector 1908 detects whether the displayable output is aletterbox, pillarbox, or neither, as well as the location of theborders.

The border occlusion generator 1904 then generates the borderreveal/conceal signal according to the size of the border calculatedfrom the regenerated vector field positioned according to theletterbox/pillarbox, and disables the signal on an edge by edge basis ifthe camera correlation heuristics per edge are over a threshold.

A border halo selector 1910 then directs the camera model motioncompensated current and/or previous pixels onto the output in place ofhalo reducing interpolator motion compensated pixels (or pixelsgenerated from an ordinary interpolator) when the border reveal/concealsignal is active. It should be noted that the border reveal/concealsignal could be more of a fade control as opposed to a simple switch,allowing the border halo selector to weight results of a camera modelinterpolator with those of a halo reducing interpolator (or ordinaryinterpolator) 1912.

Another issue that arises is how to detect whether occlusion isoccurring in a particular region, especially for the object-typeocclusion necessary to detect for the first embodiment of the presentinvention. As described earlier, the first embodiment of the presentinvention uses what is termed “full frame” occlusion detection, whereessentially the PREV and CURR frames are utilized to determine whetheran area is an occlusion area, disregarding any potential interpolatedframes. This, however, does not account for the fact that the time slotof the interpolated frame can possibly alter whether or not the pixel isin a reveal or conceal region.

For example, FIG. 20 illustrates an example where a background is movingdown and an object moving up, while there are two frames to beinterpolated between the PREV frame and the. CURR frame. Here, theconceal region 2000 gets progressively smaller as the time slot getslater and later (i.e., closer to the CURR frame 2002). The reveal region2004 gets progressively larger as the time slot gets later and later.

In a fourth embodiment of the present invention, intermediate frame (IF)occlusion detection is described. Here, for each interpolated frame, anintermediate frame occlusion is calculated by projecting the vectorsonto the interpolated frame time slot. The results are filtered,processed, checked, and modified by the original frame occlusion to givea final intermediate frame occlusion output.

Input motion vectors are projected to the interpolated frame locations.This is performed separately for the forward vector and the backwardvector fields. It is also repeated for each interpolated frame location.For example, if the requirement is to increase the frame rate by fivetimes, there will be four interpolated frames at the ⅕, ⅖, ⅗, and ⅘positions. Thus, the forward and backwards projections must be repeatedfour times, once for each of the four interpolated frame.

In one embodiment of the present invention, storage for the dataregarding the projections comprises a single bit projected frame storefor each pixel location for the forward vectors, and a single bitprojected frame store for the each pixel location backward vectors foreach interpolated frame. To start with, the projected frames are cleared(i.e., each address is set to zero).

For example, a forward motion vector MV =[mx, my] may be located at (x,y) in the PREV original frame, and it may point to the new location(x+mx, y+my) in the CURR original frame. A backward motion vectorMV=[mx, my] located at (x, y) in the CURR original frame may point tothe new location (x+mx, y+my] in the PREV original frame. The frameinterpolation then requires 2 new frames, I1 and I2, to be inserted atthe locations ⅓ and ⅔ of the inter-frame interval.

For the I1 forward frame at the ⅓ location, the input forward motionvector is scaled by the scaling factor ⅓. That is, (Δx, Δy)=1/3·(mx,my). The bit in the projected location (x+Δx, y+Δy) in the forwardsingle bit projected frame store is set to indicate that a vector hasbeen projected onto this location.

For the I1 backward frame at the ⅓ location, the input backward motionvector is scaled by the scaling factor ⅔. That is, (Δx, Δy)=2/3·(mx,my). The bit in the projected location (x+Δx, y+Δy) in the backwardsingle bit projected frame store is set to indicate that a vector hasbeen projected onto this location.

After the entire frame of vectors has been projected, any bits that arestill zero in the projected frame stores are considered to be holes.These holes represent either where a forward vector projects to thelocation but no backwards vector projects to the location, orvice-versa.

A histogram filter is used to smooth off the holes in the single bitprojected frame stores. The key is to determine whether a hole is merelyan erroneous or spurious value, or whether it does indeed indicate anocclusion area. Therefore, for each location, the hole count within alocalized area (which may be called a kernel) is calculated, and if theresult is above a threshold, then the output will be a hole. A higherweighting can be given to holes near the center of the kernel.

The filter threshold is adjustable. Smaller values tend to enlarge thehole and hence also enlarge the intermediate frame occlusion areas.

Generally, an area is considered to be a conceal region where there is ahole in the backward projected frame store, and a reveal region wherethere is a hole in the forward projected frame store.

Of course, motion vectors in reveal or conceal areas can be suspect evenwhen an apparent match is found. FIG. 21 is a diagram an example ofthis. As can be seen in FIG. 21, forward vector projections 2100 foundmatches, but the matches are such that the projections are going indifferent directions than the background appears to be moving (anddifferent from other projections in the same area). This oftentimes willnot present a problem, however, as long as a match is found, theprojection will typically be good enough to fill in an intermediateframe occlusion area.

There is, however, ambiguity where there is a hole in both the forwardand backward projected frame. This occurs because the “no match” forwardvectors do not always fill in the entire conceal region, and the “nomatch” backward vectors do not always fill in the entire reveal region.As can be seen in FIG. 21, the forward vectors leave holes 2102, 2104 inthe interpolated frame conceal area. The question then becomes what todo with these areas that have neither a projected forward vector nor aprojected backward vector. Does one treat them as a reveal area or aconceal area?

In an embodiment of the present invention, the ambiguity is resolved byonly allowing an interpolated frame conceal region where there is not anoriginal frame reveal region, and only allowing an interpolated framereveal region where there is not an original frame conceal region.

The original frame reveal and conceal regions are calculated by checkingthe correlation of pixels from the motion compensated CURR frame withthe PREV frame using forward vectors, and by checking the correlation ofpixels from the motion compensated PREV frame with the CURR frame usingbackward vectors.

Where the correlation of the motion compensated pixels from the CURRframe to the PREV frame is relatively poor, this indicates there is aconceal region. Where the correlation of the motion compensated pixelsfrom the PREV frame to the CURR frame is relatively poor, this indicatesthere is a reveal region.

In this manner, full frame occlusion detection is effectively used as abackup to intermediate frame occlusion detection in areas whereintermediate frame occlusion detection is unreliable.

FIG. 22 is a flow diagram illustrating a method for performing motioncompensated interpolation using a previous frame and a current frame ofa displayable output in accordance with the fourth embodiment of thepresent invention. At 2200, full frame occlusion areas of thedisplayable output are determined by locating full frame conceal areaswhere pixels of the previous frame have no match in the current frameand full frame reveal areas where pixels of the current frame have nomatch in the previous frame.

At 2202, intermediate frame occlusion areas of an interpolated frame aredetermined by locating intermediate frame conceal areas based onprojected locations of pixels within the full frame conceal areas usingforward motion vectors and information about a time slot for theinterpolated frame, and by locating intermediate frame reveal areasbased on projected locations of pixels within the full frame revealareas using backward motion vectors and information about the time slotfor the interpolated frame. This may include weighting backward andforward motion vectors based upon the proximity of the time slot of theinterpolated frame to the current and previous frames, respectively. Thetime slot indicates the temporal distance between the interpolated frameand the previous frame and between the interpolated frame and thecurrent frame.

Calculations used to aid in the determination of step 2202 can beperformed using forward and backward frame stores, wherein the forwardand backward frame stores each contain a single bit storage for eachpixel of an interpolated frame. These frame stores may be initialized soeach of the single bit storages are zero. Then corresponding pixels inthe forward frame store are set to non-zero based on the projectedlocations of pixels using forward motion vectors and the previous frameand the information about a time slot for the interpolated frame. Thecorresponding pixels in the backward frame store are set to non-zerobased on the projected locations of pixels using backward motion vectorsand the information about a time slot for the interpolated frame. Thedetermination of intermediate frame occlusion areas of an interpolatedframe can then include identifying a pixel as part of an intermediateframe conceal area if the single bit storage corresponding to the pixelin the backward frame stores is zero while the single bit storagecorresponding to the pixel in the forward frame stores is non-zero, andidentifying a pixel as part of an intermediate frame reveal area of thesingle bit storage corresponding to the pixel in the forward framestores is zero while the single bit storage corresponding to the pixelin the backward frame stores is non-zero. A pixel in the interpolatedframe to which there is neither a forward vector nor a backward vectorprojecting is identified based upon whether both the single bit storagecorresponding to the pixel in the forward frame store and the single bitstorage corresponding to the pixel in the backward frame store are zero.

A histogram filter can also be used to aid in determining whether aregion of pixels in the intermediate frame is an occlusion area. Thehistogram filter may have an adjustable threshold; wherein the higherthe threshold is set, the less likely that a region of pixels will bedetermined to be an occlusion area.

At 2204, for any pixels in the interpolated frame to which there isneither a forward vector nor a backward vector projecting, the pixel isincluded in an intermediate frame conceal area if it is not locatedwithin the full frame reveal area, and the pixel is included in anintermediate frame reveal area if it is not located within the fullframe conceal area. At 2206, the intermediate frame conceal and revealareas are used to interpolate values for pixels within an area of theinterpolated frame. Optionally, this could include, when the area isneither an intermediate frame reveal area nor an intermediate frameconceal area, using both forward vectors applied to the current frameand backward vectors applied to the previous frame to calculate valuesfor pixels within the area, when the area is an intermediate framereveal area, using forward vectors applied to the current frame tocalculate values for pixels within the area, without using backwardvectors, and when the area is an intermediate frame conceal area, usingbackward vectors applied to the previous frame to calculate values forpixels within the area, without using forward vectors.

FIG. 23 is a block diagram of an intermediate frame occlusion estimationsystem in accordance with the fourth embodiment of the presentinvention. A forward data store 2300 contains an entry for each pixel inan intermediate frame to be interpolated from a current and previousframe of displayable output. A backward data store 2302 also contains anentry for each pixel in the intermediate frame. These entries can besingle bit entries. A full frame occlusion generator 2304 can beconfigured to determine full frame occlusion areas of the displayableoutput by locating full frame conceal areas where pixels of the previousframe have no match in the current frame and full frame reveal areaswhere pixels of the current frame have no match in the previous frame.This full frame occlusion generator may be, for example, a halo reducinginterpolator. An intermediate frame occlusion generator 2306 can beconfigured to determine intermediate frame occlusion areas of theinterpolated frame by locating intermediate frame conceal areas based onprojected locations of pixels within the full frame conceal areas usingmotion vectors and information about a time slot for the interpolatedframe, and by locating intermediate frame reveal areas based onprojected locations of pixels within the full frame reveal areas usingbackward motion vectors and information about the time slot for theinterpolated frame. The intermediate frame occlusion generator 2306 canfurther be configured to, for any pixels in the interpolated frame towhich there is neither a forward vector nor a backward vectorprojecting: include the pixel in an intermediate frame conceal area ifit is not located within the full frame reveal area; and include thepixel in an intermediate frame reveal area if it is not located withinthe full frame conceal area.

A histogram filter 2308 can be coupled to the intermediate frameocclusion generator 2306, the forward data store 2300, and the backwarddata store 2302.

An interpolator 2310 may then be coupled to the intermediate frameocclusion generator to interpolate the intermediate frame based upon theintermediate frame reveal and conceal areas.

A fifth embodiment of the present invention uses intermediate frameocclusion to pull pixels from the appropriate input frame, and fullframe occlusion to select only forward vectors where there is no matchfor backward vectors or backward vectors where there is no match forforward vectors.

Forward vectors are calculated by taking a fixed block of pixels in thePREV frame and searching the CURR frame for a match. Where a portion ofthe background has been concealed by a foreground object, a correctmatch will not be possible.

Backward vectors are calculated by taking a fixed block of pixels in theCURR frame and searching the PREV frame for a match. Where a portion ofthe background has been revealed by a foreground object, a correct matchwill not be possible.

Two different methods of detecting the occlusion (reveal and conceal)areas are used. These are the full frame occlusion (FF Reveal andConceal) and the Intermediate frame occlusion (IF Reveal and Conceal),both described earlier.

The full frame occlusion is generated using the picture correlationvector confidence block followed by an assignment status histogramfilter. The FF occlusion field is common to all the interpolated frames.

The intermediate frame occlusion is generated by finding where there areholes in the projected forward and backward primary vector fields. Thereis a separate IF occlusion field for each of the interpolated frames.

The full frame occlusion (FF Reveal and Conceal) is generated by thepicture correlation vector confidence block. This is done by checkinghow well the full frame motion compensated Y/C pixels match for bothforward and backward vectors. For example, if the forward pixelscorrelate much better than the backward pixels, this indicates there wasno backward match possible, and it is a reveal region.

The assignment status histogram filter smoothes out speckle noise in theFF reveal and conceal regions.

The Intermediate frame occlusion (IF Reveal and Conceal) is determinedafter projecting the primary vectors onto the intermediate frame.

The projected vector histogram filter is used to smooth off the holes(that indicate IF occlusion) in the projected primary vector fields.Small holes in the projected vector field are filled in. The filterthreshold is variable to allow some stretching or reduction of the IFocclusion area.

The projected vector fields are used to determine the IF reveal andconceal regions. Where there is a hole in the projected backward primaryvector field, this indicates an IF conceal region. Where there is a holein the projected forward primary vector field, this indicates an IFreveal region.

The FF reveal and conceal areas are used to resolve ambiguities causedby holes in both projected primary fields as follows. IF reveal isallowed except in FF conceal and IF conceal is allowed except in FFreveal.

The fifth embodiment of the present invention then can also bespecifically designed to utilize secondary motion vectors to enhancehalo artifact reduction. Specifically, motion vectors calculated fromthe PREV and CURB frames can be termed “primary” motion vectors. Thefifth embodiment of the present invention, however, also utilizes theframe prior . to the PREV frame (PREV-2) and the frame subsequent to theCURR frame (CURR+1), which can be termed “secondary” motion vectors, toenhance its functionality.

The secondary vectors will only be projected if they have good weightedcorrelation (a confidence measure). This is to prevent erroneoussecondary vectors from being used.

IF conceal will not be allowed if there is no projected backwardsecondary vector to be used due to a hole in the projected backwardsecondary field. IF reveal will not be allowed if there is no projectedforward secondary vector to be used due to a hole in the projectedforward secondary field.

Backward secondary projected vectors are inserted into the non projectedbackward vector field in the IF reveal regions. Similarly, forwardsecondary projected vectors are inserted into the non projected forwardvector field in the IF conceal regions. The resulting fields arefiltered by spatial vector filters with a close neighbor threshold.

In an alternative embodiment, the secondary vectors are inserted withoutprojecting them first. The resulting fields are filtered by vectorfilters with a close neighbor threshold.

The close neighbor threshold for the filter is switched depending on ifthe center vector was in an IF region. This is because near theobject/background boundary it may be desirable to reduce the possibilityof smearing the object vectors into the background vectors.

In non-occluded regions, the scaled backward vectors are used on theprevious frame pixel data to produce the motion compensated PREV pixel.Similarly the scaled forward vectors are used on the current frame pixeldata to produce the motion compensated CURR Pixel.

in the full frame reveal area, the backward vectors are likely to beerroneous as they have no match, therefore the forward vectors can beused in their place on the previous frame pixel data (suitably invertedand scaled) to produce the motion compensated previous pixel.

Similarly in the full frame conceal area, the forward vectors are likelyto be erroneous as they have no match, therefore the backward vectorscan be used in their place on the current frame pixel data (suitablyinverted and scaled) to produce the motion compensated current pixel.

The MC Current, MC Previous and Temporal Average Y/C pixels are taken toa 3 tap LC median filter and the output is the MC Median pixel. The MCMedian pixel is used except in occlusion regions.

The system may have two modes. hi the first mode, the FF occlusion willbe used to select the MCPREV pixel in conceal areas or the MCCURR pixelin reveal areas. When the system is in the second mode, the IF occlusionwill be used for the selection.

The OSWIM (Object Speed Weighted Interpolation Mode) adaptive blendcontrol is also available for the first mode. It blends the halo-reducedand the straight median pixels depending on the speed of the foregroundobject, as described above with respect to the second embodiment of thepresent invention.

Additionally, border halo reduction is available in accordance with thethird embodiment of present invention described above. This uses thecamera model to determine if there is a reveal or conceal region at theedge of the letterbox. It is disabled on an edge by edge basis if thereis ambiguity in the border region due to an object close to that edge.It can give an improved halo performance at boundaries provided theletterbox is accurately known.

With well behaved input material, where the motion estimator can producea vector field that is fairly accurate, the more sophisticated projectedvector interpolator can produce results with better halo performance.However, when the vectors are inaccurate, the artifacts produced by theProjected Vector Interpolator are more objectionable than the simple 3tap median non-projected interpolator.

Therefore, an embodiment of the present invention provides an ability tocontrol the interpolator mode frame by frame based on vector histogramsand other instrumentation.

It is also not desirable to risk extending the motion compensated framesoutside the letterbox or pillarbox as this would look untidy. Howeverthere may be useful off-screen display (OSD) or other material in thisregion.

Therefore, either the temporal average of the PREY and CURR input pixelor alternatively a simple repeat of one of these pixels, will beinserted in the interpolated frame when outside the letterbox orpillarbox.

The mode control allows a full MC mode, a temporal filtered MC mode, andan MC bypass mode controllable by firmware on a frame by frame basisaccording to analysis of the picture content.

FIG. 24 is a diagram illustrating the generation of backwardinterpolated (BI) and forward interpolated (FI) vector fields inaccordance with the fifth embodiment of the present invention.

The BI vector field is simply the non-projected BP (backward primary)field with the projected BS (backward secondary) vectors inserted in theIF conceal region. An example of this is IF conceal region 2400, whichis projected based on backward secondary vectors 2402, whereas the restof the BI vector field 2404 is simply identical to the BP vector field2406.

The FI vector field is simply the non-projected FP (forward primary)field with the projected FS (forward secondary) vectors inserted in theIF reveal region. An example of this is IF reveal region 2408, which isprojected based on forward secondary vectors 2410, whereas the rest ofthe FI vector field 2412 is simply identical to the FP vector field2414.

After the insertion of the secondary vectors, the BI and Fl vectorfields are spatially filtered to smooth over discontinuities and togenerate fractional bits. They are then used for pixel interpolation.

FIG. 25 is a diagram illustrating how the pixels are brought in to theinterpolated field using the BI and FI vector fields. In cases wheremotion compensated pixels are brought in from both frames, a 3 tapmedian with the temporal average pixel may be performed. This includesareas 2500, 2502, and 2504. In one embodiment, this also includes anyother area, such as 2506, 2510, and 2514, except where there is an IFreveal or IF conceal, such as 2512 and 2508. In the non-occluded areas,pixels are brought in from the previous frame with backward vectors andfrom the current frame with the forward vectors.

FIG. 26 is a flow diagram illustrating a method for performing motioncompensated interpolation using a previous frame and a current frame ofa displayable output in accordance with the fifth embodiment of thepresent invention. While multiple steps are described, this essentiallyis a two-phase process. In the first phase, BI and FI vector fields aregenerated. In the second phase, these vector fields are utilized inorder to project the proper pixels into the intermediate frame, At 2600,each bit of a forward and backward frame store are initialized to zero.At 2602, corresponding pixels in the forward frame store are set tonon-zero based on the projected locations of pixels using forward motionvectors and the previous frame and the information about a time slot forthe interpolated frame. At 2604, corresponding pixels in the backwardframe store are set to non-zero based on the projected locations ofpixels using backward motion vectors and the current frame and theinformation about a time slot for the interpolated frame. These twosteps may include weighting backward and forward motion vectors basedupon the proximity of the time slot of the interpolated frame to thecurrent and previous frames, respectively. The time slot indicates thetemporal distance between the interpolated frame and the previous frameand between the interpolated frame and the current frame.

At 2606, intermediate frame occlusion areas of the interpolated frame ofthe displayable output are determined by identifying pixels as part ofan intermediate frame conceal area if the single bit storagescorresponding to the pixels in the backward frame store are zero whilethe single bit storage corresponding to the pixels in the forward framestore are non-zero, and identifying pixels as part of an intermediateframe reveal area FF the single bit storages corresponding to the pixelsin the forward frame store are zero while the single bit storagescorresponding to the pixels in the backward frame stores are non-zero.

At 2608, pixels in the interpolated frame to which there is neither aforward vector nor a backward vector projecting are identified basedupon whether both the single bit storages corresponding to the pixels inthe forward frame store and the single bit storages corresponding to thepixels in the backward frame store are zero.

Optionally, the determination of intermediate frame occlusion areas ofan interpolated frame can use a histogram filter to aid in determiningwhether a region of pixels in the intermediate frame is an occlusionarea. The histogram filter may have an adjustable threshold; wherein thehigher the threshold is set, the less likely that a region of pixelswill be determined to be an occlusion area.

At 2610, full frame occlusion areas of the displayable output aredetermined by locating full frame conceal areas where pixels of theprevious frame have no match in the current frame and full frame revealareas where pixels of the current frame have no match in the previousframe.

At 2612, the intermediate frame conceal areas are modified by projectinglocations of pixels using secondary forward motion vectors. At 2614, theintermediate frame reveal areas are modified by projecting locations ofpixels using secondary backward motion vectors.

At 2616, for each pixel, it may be determined if a pixel location isoutside a letterbox or pillarbox border of the displayable output. Ifso, then at 2618, a temporal average of the pixel values from theprevious and current frames may be used, or a repeat of the pixel valuefrom the previous frame, or a repeat of the pixel value from the currentframe.

FIG. 27 is block diagram illustrating an interpolator in accordance withthe fifth embodiment of the present invention. A forward data store 2700contains an entry for each pixel in an intermediate frame to beinterpolated from a current and previous frame of displayable output. Abackward data store 2702 also contains an entry for each pixel in theintermediate frame. These entries can be single bit entries. A fullframe occlusion generator 2704 can be configured to determine full frameocclusion areas of the displayable output by locating full frame concealareas where pixels of the previous frame have no match in the currentframe and full frame reveal areas where pixels of the current frame haveno match in the previous frame. This full frame occlusion generator maybe, for example, a part of a halo reducing interpolator. An intermediateframe occlusion generator 2706 can be configured to determineintermediate frame occlusion areas of an interpolated frame of thedisplayable output by locating intermediate frame conceal areas based onprojected locations of pixels within the full frame conceal areas usingprimary forward motion vectors and information about a time slot for theinterpolated frame, and by locating intermediate frame reveal areasbased on the projected locations of pixels within the full frame revealareas using primary backward motion vectors and information about thetime slot for the interpolated frame.

A histogram. filter 2708 can be coupled to the intermediate frameocclusion generator 2706, the forward data store 2700, and the backwarddata store 2702.

An intermediate frame occlusion modifier 2710 is then configured tomodify the intermediate frame conceal areas by projecting locations ofpixels using secondary forward motion vectors, and to modify theintermediate frame reveal areas by projecting locations of pixels usingsecondary backward motion vectors.

An interpolator 2712 may interpolate the intermediate frame based uponthe intermediate frame reveal and conceal areas.

Although only a few embodiments of the present invention have beendescribed, it should be understood that the present invention may beembodied in many other specific forms without departing from the spiritor the scope of the present invention. The present examples are to beconsidered as illustrative and not restrictive, and the invention is notto be limited to the details given herein, but may be modified withinthe scope of the appended claims along with their full scope ofequivalents.

While this invention has been described in terms of a preferredembodiment, there are alterations, permutations, and equivalents thatfall within the scope of this invention. It should also be noted thatthere are many alternative ways of implementing both the process andapparatus of the present invention. It is therefore intended that theinvention be interpreted as including all such alterations,permutations, and equivalents as fall within the true spirit and scopeof the present invention. It should also be noted that the variousembodiments described within this document can be mixed and matched witheach other in various combinations. For space purposes, not everycombination and permutation of these embodiments is explicitly describedin this document. However, one of ordinary skill in the art willrecognize that the scope of the invention shall be construed to coversuch combinations and permutations.

1. A method to perform motion compensated interpolation using a previousframe and a current frame of a displayable output, the methodcomprising: determining a non-zero speed of a background in thedisplayable output; determining a non-zero speed of an object in thedisplayable output; determining a relative speed of the object, wherethe relative speed is determined based upon the non-zero speed of thebackground and the non-zero speed of the object; performing pre-emphasisfiltering on the displayable output prior to interpolation, wherein thepre-emphasis filtering boosts higher frequencies within the displayableoutput, wherein the degree of pre-emphasis filtering is weighted basedon the relative speed of the object; and performing de-emphasisfiltering after interpolation, wherein said de-emphasis filteringrestores a flat frequency response.
 2. A method according to claim 1,wherein an increase in the relative speed of the object causes acorresponding increase in the degree of pre-emphasis filtering.
 3. Amethod according to claim 1, further comprising: based on thedisplayable output, creating a two dimensional histogram of a motionvector field having dimensions that correspond to vertical andhorizontal components of background motion vectors and object motionvectors; giving greater weight to vectors with a higher confidence ofbeing correct in the two dimensional histogram; analyzing the twodimensional histogram to identify dominant vectors; and grouping theidentified dominant vectors into categories, wherein one category isbackground and one category is object.
 4. A method according to claim 1,further comprising: receiving results from a halo reducing interpolator;and weighting the results from the halo reducing interpolator based uponthe relative speed of the object.
 5. A method according to claim 4,further comprising: receiving results from a median interpolator; andweighting the results from the median interpolator based upon therelative speed of the object.
 6. A method according to claim 5, furthercomprising: blending the weighted results from the halo reducinginterpolator and the weighted results from the median interpolator toarrive at an interpolated frame.
 7. A method according to claim 5,wherein an increase in the relative speed causes an increased weightingof results from the median interpolator and a decreased weighting ofresults from the halo reducing interpolator.
 8. A method according toclaim 5, further comprising: blending the weighted results from the haloreducing interpolator and the weighted results from the medianinterpolator to arrive at an interpolated frame; generating a fadecontrol signal based on the relative speed, the fade control signalindicating how much to weight results from the median interpolator andhow much to weight results from the halo reducing interpolator.
 9. Amethod according to claim 1, further comprising: determining if motionof the object within the displayable output with respect to motion ofthe background within the displayable output is such that a particulararea of an interpolated frame is a reveal region, a conceal region, orneither the reveal region nor the conceal region; when the particulararea of the interpolated frame is neither the reveal region nor theconceal region, using both forward vectors applied to the current frameand backward vectors applied to the previous frame to calculate valuesfor pixels within the particular area of the interpolated frame; whenthe particular area of the interpolated frame is the reveal region,using forward vectors applied to the current frame to calculate valuesfor pixels within the particular area of the interpolated frame and notusing backward vectors; and when the particular area of the interpolatedframe is the conceal region, using backward vectors applied to theprevious frame to calculate values for pixels within the particular areaof the interpolated frame and not using forward vectors.
 10. A methodaccording to claim 1, further comprising: applying a correspondingforward vector to the current frame to generate a first pixel value;applying a corresponding backward vector to the previous frame togenerated a second pixel value; and calculating a median pixel valuefrom the first pixel value, the second pixel value, and a temporalaverage pixel.
 11. A non-transitory computer-readable storage mediumwhose stored contents configure a computing system to perform a method,the method comprising: storing a previous frame of a displayable output;storing a current frame of the displayable output; deriving a rate ofmotion of a background in the displayable output, the rate of motion ofthe background being non-zero; deriving a rate of motion of an object inthe displayable output; calculating a relative rate of motion of theobject, where the relative rate of motion is calculated from the rate ofmotion of the background and the rate of motion of the object; prior toan interpolation and based on the relative rate of motion of the object,performing pre-emphasis filtering on the displayable output to boosthigher frequencies within the displayable output; and after theinterpolation, performing de-emphasis filtering to restore a flatfrequency response.
 12. The non-transitory computer-readable storagemedium according to claim 11 whose stored contents configure thecomputing system to perform the method, the method further comprising:after the de-emphasis filtering, directing a video output module tooutput a decoded sequence of video frames of the displayable output to adisplay device.
 13. The non-transitory computer-readable storage mediumaccording to claim 11 whose stored contents configure the computingsystem to perform the method, the method further comprising: receivingresults from a halo reducing interpolator; and weighting the resultsfrom the halo reducing interpolator based upon the relative rate ofmotion of the object.
 14. The non-transitory computer-readable storagemedium according to claim 13 whose stored contents configure thecomputing system to perform the method, the method further comprising:receiving results from a median interpolator; weighting the results fromthe median interpolator based upon the relative rate of motion of theobject; and blending the weighted results from the halo reducinginterpolator and the weighted results from the median interpolator toarrive at an interpolated frame.
 15. The non-transitorycomputer-readable storage medium according to claim 11, wherein thepre-emphasis filtering is performed using a high-pass filter.
 16. Aninterpolation system to interpolate frames of a displayable output,comprising: an object speed detection module to: determine a speed of abackground in the displayable output, wherein the speed of thebackground is a non-zero speed; determine a speed of an object in thedisplayable output; and determine a relative speed of the object usingthe speed of the background and the speed of the object; a pre-emphasisfilter module to perform a weighted filtering of the displayable outputprior to interpolation, wherein the weighted filtering boosts higherfrequencies within the displayable output, and wherein a weighting valueof the weighted filtering is based on the relative speed of the object;and: a de-emphasis filter module to perform a de-emphasis filtering ofthe displayable output after interpolation that restores a flatfrequency response.
 17. An interpolation system according to claim 16,further comprising: a halo reducing interpolator; a median interpolator;and a blending module coupled to the object speed detection unit, thehalo reducing interpolator, and the median interpolator and arranged toblend weighted results from the halo reducing interpolator and themedian interpolator.
 18. An interpolation system according to claim 17,wherein the blending module is arranged to: weight results from the haloreducing interpolator based upon the relative speed of the object,weight results from the median interpolator based upon the relativespeed of the object, and blend the weighted results from the haloreducing interpolator and the weighted results from the medianinterpolator.
 19. An interpolation system according to claim 16, furthercomprising: a two dimensional histogram generator to create a motionvector field from a field of input vectors, the motion vector fieldhaving dimensions that correspond to vertical and horizontal componentsof background motion vectors and object motion vectors; and an analysismodule to: give greater weight to vectors with a higher confidence ofbeing correct in a generated two dimensional histogram; analyze the twodimensional histogram to identify dominant vectors; and group theidentified dominant vectors into categories, wherein one category isbackground and one category is object.
 20. An interpolation systemaccording to claim 16, wherein the pre-emphasis filter is a high-passfilter.